﻿<%@ Page Language="C#" MasterPageFile="~/defaultMaster.master" AutoEventWireup="true" CodeFile="advSearch.aspx.cs" Inherits="advSearch" Title="Tìm kiếm nâng cao" %>

<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadComboBox.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="5" style="width: 650px" align="center">
        <tr>
            <td valign="top">
                <table border="0" cellpadding="0" cellspacing="0" style="border-right: #ccc 1px solid;
                    border-top: #ccc 1px solid; border-left: #ccc 1px solid; width: 100%; border-bottom: #ccc 1px solid">
                    <tr>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td style="width: 35px; height: 30px">
                                        <img alt="" src="imgs/header_left.gif" /></td>
                                    <td class="header" style="height: 30px">
                                        <span class="HeaderText">Tiêu chí tìm kiếm</span></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <table border="0" cellpadding="5" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td style="width: 150px">
                                        Tên sản phẩm:</td>
                                    <td>
                                        <rad:RadTextBox ID="txtProName" runat="server" Skin="Office2007" Width="140px">
                                        </rad:RadTextBox></td>
                                    <td>
                                        Loại:</td>
                                    <td>
                                        <rad:RadComboBox id="cboCats" runat="server" SkinsPath="~/RadControls/ComboBox/Skins"
                                            Width="140px" DataTextField="CatName" DataValueField="CatID" Height="200px" MarkFirstMatch="True" Skin="Vista">
                                        </rad:RadComboBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                        Giá khởi điểm:</td>
                                    <td style="width: 180px">
                                        <rad:RadNumericTextBox ID="txtSPF" runat="server" Culture="English (United States)"
                                            LabelCssClass="radLabelCss_Default" ShowSpinButtons="True" Skin="Office2007"
                                            Type="Currency" Width="140px" Value="0">
                                            <NumberFormat AllowRounding="True" DecimalDigits="0" />
                                        </rad:RadNumericTextBox></td>
                                    <td style="width: 30px">
                                        đến:</td>
                                    <td>
                                        <rad:RadNumericTextBox ID="txtSPT" runat="server" Culture="English (United States)"
                                            LabelCssClass="radLabelCss_Default" ShowSpinButtons="True" Skin="Office2007"
                                            Type="Currency" Width="140px" Value="0">
                                            <NumberFormat AllowRounding="True" DecimalDigits="0" />
                                        </rad:RadNumericTextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                        Giá cao nhất hiện thời:</td>
                                    <td>
                                        <rad:RadNumericTextBox ID="txtCBF" runat="server" Culture="English (United States)"
                                            LabelCssClass="radLabelCss_Default" ShowSpinButtons="True" Skin="Office2007"
                                            Type="Currency" Width="140px" Value="0">
                                            <NumberFormat AllowRounding="True" DecimalDigits="0" />
                                        </rad:RadNumericTextBox></td>
                                    <td>
                                        đến:</td>
                                    <td>
                                        <rad:RadNumericTextBox ID="txtCBT" runat="server" Culture="English (United States)"
                                            LabelCssClass="radLabelCss_Default" ShowSpinButtons="True" Skin="Office2007"
                                            Type="Currency" Width="140px" Value="0">
                                            <NumberFormat AllowRounding="True" DecimalDigits="0" />
                                        </rad:RadNumericTextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                        Ngày kết thúc đấu giá:</td>
                                    <td>
                                        <rad:RadDateTimePicker id="dtpEFDF" Runat="server" Skin="Vista">
                                            <calendar skin="Vista" runat="server"></calendar>
                                            <timeview skin="Vista" runat="server"></timeview>
                                            <dateinput skin="Vista" runat="server"></dateinput>
                                        </rad:RadDateTimePicker></td>
                                    <td>
                                        đến:</td>
                                    <td>
                                        <rad:RadDateTimePicker id="dtpEFDT" Runat="server" Skin="Vista">
                                            <calendar skin="Vista" runat="server"></calendar>
                                            <timeview skin="Vista" runat="server"></timeview>
                                            <dateinput skin="Vista" runat="server"></dateinput>
                                        </rad:RadDateTimePicker>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px; height: 23px">
                                    </td>
                                    <td align="left">
                                        <asp:Button ID="btnSearch" runat="server" CssClass="coolButton" Text="Tìm kiếm" OnClick="btnSearch_Click" /></td>
                                    <td style="height: 23px">
                                    </td>
                                    <td style="height: 23px">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td valign="top">
            </td>
        </tr>
        <tr>
            <td valign="top"><rad:RadAjaxPanel id="radAjaxPnAddCategory" runat="server" width="100%" HorizontalAlign="NotSet" LoadingPanelID="AjaxLoadingPanel2" ScrollBars="None">
                <table border="0" cellpadding="0" cellspacing="0" style="border-right: #ccc 1px solid;
                    border-top: #ccc 1px solid; border-left: #ccc 1px solid; width: 100%; border-bottom: #ccc 1px solid" id="Table1">
                <tr>
                    <td>
                        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td style="width: 35px; height: 30px">
                                    <img alt="" src="imgs/header_left.gif" /></td>
                                <td class="header" style="height: 30px">
                                    <span class="HeaderText">Kết quả tìm kiếm</span></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <asp:Label ID="lblSearchRs" runat="server" Text='<div align="center"><br/><br/>Không tìm thấy sàn nào !!!<br/><br/><br/></div>'></asp:Label><asp:DataList
                            ID="dlFloors" runat="server" CellSpacing="5" RepeatColumns="2" RepeatDirection="Horizontal"
                            Width="100%">
                            <ItemTemplate>
                                <table align="center" border="0" cellpadding="3" cellspacing="0" style="width: 270px;
                                    border-right: #ccc 1px dotted; border-top: #ccc 1px dotted; border-left: #ccc 1px dotted;
                                    border-bottom: #ccc 1px dotted;">
                                    <tr>
                                        <td align="center">
                                            <asp:HyperLink ID="HyperLink1" runat="server" ImageUrl='<%# "imgs/floors/" + Eval("ProID") + "/main_thumbs.jpg" %>'
                                                NavigateUrl='<%# "floordetails.aspx?proId=" + Eval("ProID") %>' Text='<%# Eval("ProName") %>' Target="_blank"></asp:HyperLink></td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px">
                                            Tên:&nbsp;<strong>
                                                <asp:HyperLink ID="HyperLink3" runat="server" CssClass="ProName" NavigateUrl='<%# "floordetails.aspx?proId=" + Eval("ProID") %>'
                                                    Text='<%# Eval("ProName") %>' Target="_blank"></asp:HyperLink></strong></td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px">
                                            Người bán:
                                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("Seller") %>'></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px">
                                            Giá hiện thời:
                                            <asp:Label ID="Label1" runat="server" CssClass="Verdana10RedBold" Text='<%# string.Format("{0:c0}", Eval("CurBid")) %>'></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px">
                                            Số lượng khách hàng:
                                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("Buyers") %>'></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px">
                                            Dự kiến kết thúc:
                                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("EFD") %>'></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px">
                                            <asp:Label ID="lblQuick" runat="server" CssClass="Verdana8Orange" Font-Bold="True"
                                                Text="Cho phép mua nhanh" Visible='<%# Eval("Quick") %>'></asp:Label>
                                            <asp:Label ID="lblNotQuick" runat="server" CssClass="Verdana8Olive" Font-Bold="True"
                                                Text="Không có mua nhanh" Visible='<%# !(bool)Eval("Quick") %>'></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 5px">
                                            Mô tả:
                                            <asp:Label ID="Label5" runat="server" Text='<%# Eval("TinyDes") %>'></asp:Label></td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:DataList></td>
                </tr>
                <tr>
                    <td valign="top">
                        <table border="0" cellpadding="20" cellspacing="0" style="width: 100%">
                            <tr>
                                <td style="width: 32px; height: 32px">
                                    <asp:ImageButton ID="btnPrev" runat="server" ImageUrl="~/imgs/Prev.jpg"
                                        ToolTip="Trang trước" OnClick="btnPrev_Click" Visible="False" /></td>
                                <td align="center">
                                    <asp:Label ID="lblPrefix" runat="server" CssClass="Verdana10OrangeBold" Text="Trang: " Visible="False"></asp:Label>
                                    <asp:Label ID="lblCurPage" runat="server" CssClass="Verdana10OrangeBold" Text="1" Visible="False"></asp:Label>
                                    <asp:Label ID="lblSuffix" runat="server" CssClass="Verdana10OrangeBold" Text="/" Visible="False"></asp:Label>
                                    <asp:Label ID="lblPages" runat="server" CssClass="Verdana10OrangeBold" Visible="False">0</asp:Label>
                                </td>
                                <td style="width: 32px; height: 32px">
                                    <asp:ImageButton ID="btnNext" runat="server" ImageUrl="~/imgs/Next.jpg"
                                        ToolTip="Trang sau" OnClick="btnNext_Click" Visible="False" /></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
                </rad:RadAjaxPanel></td>
        </tr>
    </table>
    <rad:AjaxLoadingPanel ID="AjaxLoadingPanel2" runat="server" Height="75px" Width="75px">
        <br />
        <br />
        <asp:Image ID="Image2" runat="server" AlternateText="Loading..." ImageUrl="~/imgs/ajaxLoading2.gif" />
    </rad:AjaxLoadingPanel>
    <br />
</asp:Content>

